Pergunta de entrevista da empresa iStreamPlanet

A simple looking problem about counting the words in a sentence.