Packet counter