Add a test for IDBIndex count