added an if statement to catch if count is zero

the program ran through 5200 names and then gave a divide by zero error. Im hoping this little addition will fix that. I will run the code tonight and see if it works.