Input: Sentence: 'A man standing next to train cars on display'. Count the number of nouns in this sentence.
Output: 3