Input: Sentence: 'A child playing with a frisbee while sitting on grass'. Count the number of nouns in this sentence.
Output: 3