Input: Sentence: 'A group of men that are sitting on a bench'. Count the number of nouns in this sentence.
Output: 3