Input: Sentence: 'A surfer riding on a blue surfboard on top of a small wave'. Count the number of nouns in this sentence.
Output: 4