I am doing a project and have it all finished except for one thing. I have to count errors in the entire program and if it exceeds 5 errors the program will close. the program is a doctors treatment form and i am told to do. if the user makes 5 errors that the program will close. how do you count errors.