[c] Count the number of occurrences of each letter in string