speed up counted-set summary