counts instances of each letter in an imported file