TEZ-853. Support counters recovery. (Jeff Zhang via hitesh)