Most likely you'll not have to code at all, but simply follow the manual for our new quota element: Quotierung
Unfortunately, the manual is not yet available in English, but as most browsers come along with an integrated translation feature, I guess this will not stop you for doing great research.