I have 7 teams each with players in, I need to try and figure out how to test which team has the most players, and if any teams have the same amount, I've been trying to figure this out for ages and all I could think of or find is testing every team against each other, but that would take lots of command blocks, I might add more teams in the future and I couldn't figure out how to do it properly, if anyone has any way I can do this please help. Thanks
I have 7 teams each with players in, I need to try and figure out how to test which team has the most players, and if any teams have the same amount, I've been trying to figure this out for ages and all I could think of or find is testing every team against each other, but that would take lots of command blocks, I might add more teams in the future and I couldn't figure out how to do it properly, if anyone has any way I can do this please help. Thanks