Handle wrap of 32bit and 64bit counters
Merge pull request #2 from kwirk/counter-wrap

Handle wrap of 32bit and 64bit counters