If you have a button for users to click to add themselves to a group, you can set a condition on that and its workflow. If the group’s members :count is 6, the button should be disabled and the workflow should not execute.