Pergunta de entrevista da empresa Manfree Technologies

Count the number of words in given String without using string function?