Input: Sentence: 'Two pictures of a black cat sitting next to shoes'. Count the number of nouns in this sentence.
Output: 3