Input: Sentence: 'A group of old men sit on public benches'. Count the number of nouns in this sentence.
Output: 3