Pergunta de entrevista da empresa OpenText

Code to count number of words in a string.