Improved vertexDone step, there is no global counter document anymore but a counting collection and the size of the collection is counted