Input: Sentence: 'cows grazing in a meadow in front of a meadow'. Count the number of nouns in this sentence.
Output: 4