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