OpenText interview question

They asked to write a code to find the character count in a given string