safe: simplify Counter implementation