Input: Sentence: 'A passenger train going by on the tracks'. Count the number of nouns in this sentence.
Output: 3