Input: Sentence: 'Two women with fake mustaches petting a horse'. Count the number of nouns in this sentence.
Output: 3