Input: Sentence: 'two horses in a field of green grass'. Count the number of nouns in this sentence.
Output: 3