Input: Sentence: 'A picture of a black cat sitting on a young man'. Count the number of nouns in this sentence.
Output: 3