Input: Sentence: 'A surfer getting up on his board in the water'. Count the number of nouns in this sentence.
Output: 3