Input: Sentence: 'A tennis player hitting the ball with the racket'. Count the number of nouns in this sentence.
Output: 4