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