Input: Sentence: 'A red train engine coming into a station'. Count the number of nouns in this sentence.
Output: 3