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