Pergunta de entrevista da empresa Fannie Mae

Write a function to find the total number of each characters in a given string.