Infosys Interview Question

How will you count the frequency of letters in a string?