Input: Sentence: 'Two girls with painted faces sit on the sidewalk'. Count the number of nouns in this sentence.
Output: 3