Traffic counter for a ipv4 or ipv6 subnets