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