Zendesk Interview Question

write code to counting characters in a string