Input: Sentence: 'A view of a city intersection at night'. Count the number of nouns in this sentence.
Output: 4