Input: Sentence: 'A group of men going up for a frisbee'. Count the number of nouns in this sentence.
Output: 3