Input: Sentence: 'A traffic light showing yellow and green on a pole in the city'. Count the number of nouns in this sentence.
Output: 4