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