Fix counters for IE

In Internet Explorer, global counters never updated ...