[proflog] Add integration of counters_init and counters_sample