Input: Sentence: 'An urban train emerges from a tunnel in the city'. Count the number of nouns in this sentence.
Output: 3