Input: Sentence: 'The animals are in the small stream of water'. Count the number of nouns in this sentence.
Output: 3