Input: Sentence: 'A train running on a railway track in front of a station'. Count the number of nouns in this sentence.
Output: 5