Change packet count to unsigned long.