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