fixed problem 17 script to exclude letter counts of 0 and numbers greater than 1000