Input: Sentence: 'To men sitting on a bench by the street'. Count the number of nouns in this sentence.
Output: 3