Input: Sentence: 'People walking across an intersection in the city'. Count the number of nouns in this sentence.
Output: 3