Input: Sentence: 'a man is rowing in a boat in the water'. Count the number of nouns in this sentence.
Output: 3