lock metrics and encapsulate in Counter