Input: Sentence: 'a tennis player swinging a tennis racket'. Count the number of nouns in this sentence.
Output: 4