repair counting stats mechanism