def agg.count
import bend-kit-redis@0.3.0.0/redis.bend as Redisimport Base
153# Maps count pairs and need an even count; Attr needs its pairs and one reply.
154def agg.count(+kind: U32, +n: U32) -> U32:
155 Bool.pick(U32, U32.is_eq(kind, 1), (n >> 1n : U32), Bool.pick(U32, U32.is_eq(kind, 3), (n >> 1n : U32), n))