Input: Sentence: 'The train travels on the bridge over the lake'. Count the number of nouns in this sentence.
Output: 3