counting letters in a text file