Input: Sentence: 'an image of cows in the pasture grazing'. Count the number of nouns in this sentence.
Output: 3