Input: Sentence: 'The box holds a dozen grazed donuts inside'. Count the number of nouns in this sentence.
Output: 3