restore count stuffs