Input: Sentence: 'A young man playing tennis prepares to serve the ball'. Count the number of nouns in this sentence.
Output: 3