Input: Sentence: 'A red train parked next to a loading platform'. Count the number of nouns in this sentence.
Output: 3