Input: Sentence: 'Two red trains traveling next to each other next to a lush green hillside'. Count the number of nouns in this sentence.
Output: 2