What should I do for my map?

I’m continuing my swap force map, but I’m stuck on the scoring. The score is to have people change teams after they’re shot. The amount of people on the team is the score. Team with the most players wins.

attach a wire to the goal, wire it to a trigger, wire that to a team switcher, switch the teams

before that add a counter, each time scores, add up the counters, and after a set amount of time, end game

I’m trying to do players on a team at any given time

Use this but set the relay to ‘all players on my team’ and the counter to team scoped, linking the counter to a property.