The count of chunks should really be an int32, not a size_t,