Input: Sentence: 'A young girl kicking a soccer ball out of a goal'. Count the number of nouns in this sentence.
Output: 4