ip: Use .api declarative counters for ICMP.