Input: Sentence: 'Cows chew on grass in a field near a forest of trees'. Count the number of nouns in this sentence.
Output: 5