indexCounters btree check

Some versions of mongo store indexCounters values in a btree array.
Simple check to fix those with that version (conditional statements).