counters: implement ingress counters.