ValueLabs interview question

Count letters in a word