count

external fun count(query: IDBValidKey = definedExternally): IDBRequest<JsInt>(source)
external fun count(query: IDBKeyRange): IDBRequest<JsInt>(source)

The count() method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the total number of records that match the provided key or IDBKeyRange. If no arguments are provided, it returns the total number of records in the store.

MDN Reference