Input: Sentence: 'The food is being prepared so the people can eat it'. Count the number of nouns in this sentence.
Output: 2