Input: Sentence: 'Pair of sheep stand on the downward slope of a grassy hill'. Count the number of nouns in this sentence.
Output: 4