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