Alive Players

How to you get the number of alive players, not just players in the server??