add support for ranges in objectStore.count/index.count. Fix Issue #53