Write the number of written files in generate xml