Input: Sentence: 'A man surfing the waves in the ocean'. Count the number of nouns in this sentence.
Output: 3