Tecnotree Interview Question

Count the characters in string ?