Input: Sentence: 'A small group of sheep graze in a mountain area'. Count the number of nouns in this sentence.
Output: 4