Something...
I = I + 1
if ??? Then
???
I = 0 'reset counter
endif