Store the latest counter value when verifying.
Merge pull request #2 from hultqvist/master

Store the latest counter value when verifying.