Input: Sentence: 'A surfer rides a tall crashing wave onto the beach'. Count the number of nouns in this sentence.
Output: 3