Input: Sentence: 'A woman standing beside a brown horse holding the lead'. Count the number of nouns in this sentence.
Output: 3