Input: Sentence: 'A person on a surf board riding a wave in the ocean'. Count the number of nouns in this sentence.
Output: 5