Input: Sentence: 'City street with parked cars and a bench'. Count the number of nouns in this sentence.
Output: 4