Input: Sentence: 'A fast train crossing over a small bridge'. Count the number of nouns in this sentence.
Output: 3