Input: Sentence: 'The guy is surfing the waves on the water'. Count the number of nouns in this sentence.
Output: 3