Input: Sentence: 'People are buying ice cream from the ice cream truck'. Count the number of nouns in this sentence.
Output: 6