A Measure of Undoing