Input: Sentence: 'Cars driving on the street and people walking on the sidewalk in a city'. Count the number of nouns in this sentence.
Output: 5