Better way of counting revisions