Input: Sentence: 'a doughnut factory is making many doughnuts inside'. Count the number of nouns in this sentence.
Output: 3