midx: use midx in approximate_object_count