When counts cross 65535, number will be 00000 and counts again upto 65535

but when i code
if W0 < 0 then W0 = 65535 + 1

after this counter will 00000 and hang on 00001

.