Input: Sentence: 'A man in a wet suit riding a surfboard on a wave'. Count the number of nouns in this sentence.
Output: 4