Input: Sentence: 'Two young girls sitting on top of a bench'. Count the number of nouns in this sentence.
Output: 3