cxgb(4): implement if_get_counter.