Use zcard instead of zcount when getting count of sorted set

The complexity of zcard is a constant but the complexity of zcount  is O(log(N)).