count(query = null) {
    return new Request(
      query == null ? this._source.count() : this._source.count(query),
      this._transaction,
      this
    );
  }
/**
   * Counts the number of records in the Data Source. An optional query may be
   * provided to limit the count to only records matching it.
   *
   * @param {*=} query The key of the records to count, or an IDBKeyRange of the
   *     keys to count.
   * @return {!Request<number>}
   */
Counts the number of records in the Data Source. An optional query may be
provided to limit the count to only records matching it.

@param {*=} query The key of the records to count, or an IDBKeyRange of the
keys to count.
@return {!Request}
Counts the number of records in the Data Source . An optional query may be provided to limit the count to only records matching it . @param { * = } query The key of the records to count or an IDBKeyRange of the keys to count . @return { !Request }
count(query = null) {
    return new Request(
      query == null ? this._source.count() : this._source.count(query),
      this._transaction,
      this
    );
  }
count ( query = null ) { return new Request ( query == null ? this . _source . count ( ) : this . _source . count ( query ) , this . _transaction , this ) ; }
Counts the number of records in the Data Source.
Counts the number of records in the Data Source .