Hey Kevin,
i noticed there was no answer for you yet.
I would use an on change action to check the amount of reference in total and if the maximum has been reached undo the last change (the on change probably has the object set in the reference) and give a validation message.