Input: Sentence: 'A child hitting a tennis ball with a racket while mom looks on'. Count the number of nouns in this sentence.
Output: 5