Input: Sentence: 'A train is pulling into a railroad station'. Count the number of nouns in this sentence.
Output: 3