Save attempt counter value properly