Tecnotree interview question

Count the characters in string ?