in reply to Re^2: wrong output
in thread wrong output

So what convinces you that the "diffrent code that gives (you) the total count" is correct?

It's hard to respond to such an assertion without knowing the "diffrent code" (sic).