Count the number of online players again

I refactored two adjacent loops into one, but forgot to merge this!
Hopefully fix the trade heisenbug