Group size in social-ecological systems