Input: Sentence: 'A train traveling down racks next to  houses'. Count the number of nouns in this sentence.
Output: 3