count all the letters in a text document