Input: Sentence: 'A picture of a cat looking at its reflection in the water'. Count the number of nouns in this sentence.
Output: 4