Input: Sentence: 'a train on railroad tracks next to trees'. Count the number of nouns in this sentence.
Output: 4