Input: Sentence: 'A subway train next to the boarding platform'. Count the number of nouns in this sentence.
Output: 4