Input: Sentence: 'A woman holds a horse by its bridle'. Count the number of nouns in this sentence.
Output: 3