Input: Sentence: 'A red and white train on a track near an empty platform'. Count the number of nouns in this sentence.
Output: 3