Use zcard instead of zcount when getting count of sorted set

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