if (options.where[collection.primaryKey || 'id'] && options.limit === 1) {
            this.connectionRun(r.table(collectionName).get(options.where[collection.primaryKey || 'id']).count(), cb);
        } else {
            this.connectionRun(r.table(collectionName).filter(options.where).count(), cb);
        }