def counted
import bendvy-ecs-core@0.1.0.4/query_contract.bend as QueryContractimport Base
import world.bend as W
51def counted(~S: Data,~Store: Type,~R: Type,~E: Data,observed: Scanned<S,Store,R,E>) -> W.World<S,Store,R,E> & U32:
52 match observed:
53 case Scanned{world,handles}: (world,count_list(~S,handles,0))