Input: Sentence: 'A chocolate donut on a bench next to a coffee mug'. Count the number of nouns in this sentence.
Output: 5