1.6 - exercise 1-14: histogram of frequencies of different characters in input