Count the occurence of characters

Ask the user to input a string and count the occurence of various characters in string.
The result in stores in a temporary hash and is return back.