Input: Sentence: 'A very big man riding a horse in the water'. Count the number of nouns in this sentence.
Output: 3