Input: Sentence: 'A woman playing tennis and preparing to hit the ball'. Count the number of nouns in this sentence.
Output: 3