make the index counters mongo >= 2.4 compliant

Fix for problem mentioned in https://github.com/graphdat/plugin-mongo/issues/1