Sony Interview Question

Given a string "aabbccc" write a program that displays how many times each character appears