Input: Sentence: 'a yellow train pulling up to station at night'. Count the number of nouns in this sentence.
Output: 2