Input: Sentence: 'A man in a wet suit riding a surfboard as a man reads a book on shore'. Count the number of nouns in this sentence.
Output: 6