IDX.COUNT
Count index entries matching a range or equality predicate.
IDX.COUNT name RANGE min max | EQ value
Complexity
O(log N + matched) per shard — NOT an O(1) counter and not a B-tree rank query; it counts the matched range
Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.
Redis compatibility
kevy only
kevy has this; Redis does not. nearest is FT.SEARCH with LIMIT 0 0
See also
IDX.CREATEIDX.DROPIDX.EXPLAINIDX.LISTIDX.QUERYIDX.REBUILDIDX.VERIFY