Input: Sentence: 'Two trains idle on the platform at a train station'. Count the number of nouns in this sentence.
Output: 4