Input: Sentence: 'Four adults are playing frisbee on the yard'. Count the number of nouns in this sentence.
Output: 3