Input: Sentence: 'a girl is wearing red and holding a soccer ball'. Count the number of nouns in this sentence.
Output: 3