count packet types