Input: Sentence: 'A large red train pulling into a station at night'. Count the number of nouns in this sentence.
Output: 3