How to count all dead players in a server?

Im trying to make an elimination gamemode and after one player remains I want to give his team a point and restart the round but I don’t know how to count all of the players with the “is_dead” variable. How can I do that?

Doesn’t matter, I found a way