[proflog] Add counters support to proflog