Input: Sentence: 'An empty train viewed from the station platform'. Count the number of nouns in this sentence.
Output: 3