Input: Sentence: 'three horses standing next to each other in a field of grass'. Count the number of nouns in this sentence.
Output: 3