size_t in cbm_compare as counter with bug