make the index counters mongo >= 2.4 compliant