Gainsight Interview Question

Program to count number of characters present in a given strings.