Input: Sentence: 'A man is on a surfboard on a wave'. Count the number of nouns in this sentence.
Output: 3