Input: Sentence: 'A female tennis player stretches to serve the ball'. Count the number of nouns in this sentence.
Output: 3