Input: Sentence: 'The man is surfing on his surfboard in the ocean'. Count the number of nouns in this sentence.
Output: 3