Merge pull request #2 from hultqvist/master

Store the latest counter value when verifying.
Changing counter to 32bit unsigned integer.