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