Hi, if we have n different things and we need to distribute them among m different people then how many ways can we do it such that for each of the m persons there is conditions that:

person 1 can have at least a things and at most b things

person 2 can have at least c things and at most d things

.. and so on ?

Thanks.