Counting IPv4 vs IPv6 packets on a Unifi Security Gateway

Handy to see what balance of traffic you have, and should also apply to other Linux routers.