Input: Sentence: 'A train stopped at a train station'. Count the number of nouns in this sentence.
Output: 3