Input: Sentence: 'The players are playing a game of Frisbee on the grass'. Count the number of nouns in this sentence.
Output: 3