Zendesk interview question

write code to counting characters in a string