Count packets in files