Input: Sentence: 'A traffic light on a nearly empty city street'. Count the number of nouns in this sentence.
Output: 4