Restrict number of licenses for specific companies

Hy guys,
I just bought 36 licenses for 2 of my companies and I want one company to have 30 licenses only and the other one just 6, is there a way to restrict this?