added a total_count, fixed backfilling for it