Input: Sentence: 'Three horses grazing in a snow covered field'. Count the number of nouns in this sentence.
Output: 3