Suppose we want to choose a certain number of objects, k, from a variety of choices, all limited. I'm confused about how to set up this problem. I'm pretty sure it's stars and bars, but I don't know how to incorporate the limited amount aspect of the problem.
For example, to explain what I mean, suppose we want a dozen doughnuts, and we're choosing from five chocolate doughnuts, three sprinkled doughnuts, six glazed doughnuts, and one vanilla doughnut. How many ways are there to choose one dozen doughnuts?