Input: Sentence: 'A man in the park throwing a frisbee'. Count the number of nouns in this sentence.
Output: 3