Input: Sentence: 'Two yellow trolley trains are on the tracks'. Count the number of nouns in this sentence.
Output: 3