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

Handle wrap of 32bit and 64bit counters
Fix counter64 incorrectly setting low and high in c structure
Merge pull request #3 from kwirk/counter-wrap

Fix counter64 incorrectly setting low and high in c structure