Input: Sentence: 'a train on a track near a platform'. Count the number of nouns in this sentence.
Output: 3