Domanda di colloquio di Manfree Technologies

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