Input: Sentence: 'A sheep standing in a  grass pasture that is fenced'. Count the number of nouns in this sentence.
Output: 3