In previous patch 'undo-all just show the total number of undid replacements if the first element was replaced. New patch (replace-5.patch) fix that: undo-all always show the accumulated number of undone performed.