Input: Sentence: 'A man doing a trick with a frisbee on a court'. Count the number of nouns in this sentence.
Output: 4