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