Input: Sentence: 'A boy kicking a soccer ball near a walking girl while others watch'. Count the number of nouns in this sentence.
Output: 5