Input: Sentence: 'A woman holding a dog in front of a mirror'. Count the number of nouns in this sentence.
Output: 4