Impetus Technologies interview question

Given a String, count the characters and print.