Input: Sentence: 'a man sitting on a surf board in the water'. Count the number of nouns in this sentence.
Output: 4