ZCOUNT
Count members with scores within the given bounds.
ZCOUNT key min max
Complexity
O(N) — a full scan and filter, NOT a range seek; Redis's O(log N) does not apply
Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.
Redis compatibility
Compatible
Behaves as Redis does.
See also
BZPOPMINZADDZCARDZDIFFSTOREZINCRBYZINTERCARDZINTERSTOREZPOPMINZPOPMIN.BELOWZRANGEZRANGEBYSCOREZRANKZREMZREMRANGEBYRANKZREMRANGEBYSCOREZREVRANGEBYSCOREZSCANZSCOREZUNIONSTORE