Input: Sentence: 'A girl tries to kick a soccer ball while avoiding interference from a player on the opposing team'. Count the number of nouns in this sentence.
Output: 6