Limiting Post submissions with Gravity Forms

Gravity Form has a the option to limit the number of form entries, Does anyone know of hooks that will let me limit the submissions per category.


blue shirt

—SM qty. 5 << so five post

—M qty. 10 << so ten post

—L qty. 1 << so one post

If this cannot be done in GForms is there another way?