tracks the number of times each letter appears in any text file