Issue #21746:add metric to enable gapless numbering