print the frequency of each character in a file