Input: Sentence: 'A woman holding a child next to a brown horse'. Count the number of nouns in this sentence.
Output: 3