[core] Add counters and person_fields migration helpers