Input: Sentence: 'Two pictures of a dog and a cat sitting'. Count the number of nouns in this sentence.
Output: 3