Input: Sentence: 'Person is taking a picture of their cat through a mirror'. Count the number of nouns in this sentence.
Output: 4