Input: Sentence: 'A group of white sheep grazing in grassy field next to tree'. Count the number of nouns in this sentence.
Output: 4