Input: Sentence: 'A rusty old train on top of train tracks'. Count the number of nouns in this sentence.
Output: 4