counts the number of occuraneces of each letter of the alphabet.