Ensure an integer for chunk_count.