do a compact before counting