only count active connections