Input: Sentence: 'This is a collection of different kinds of hot dogs and french fries'. Count the number of nouns in this sentence.
Output: 4