restore counting