Input: Sentence: 'A person surfing under a wave in the ocean'. Count the number of nouns in this sentence.
Output: 3