Input: Sentence: 'A surfer on his surfboard in the ocean waves'. Count the number of nouns in this sentence.
Output: 4