Implement exactly the same code as this has been done for "gpc0" and "gpc0_rate" counters.
[wt: the new version is 2.1 but it's useful to document the different versions since they're found in field. There's some overlap with the new one and they complement on certain areas. Most likely they'll ultimately be merged.]