Input: Sentence: 'A tennis player is trying to hit the ball'. Count the number of nouns in this sentence.
Output: 3