count frequencies of characters in sentence