Limits on the repeatable group field

Is it possible to limit the amount of groups that can be added? Possible disable the "Add New" button...