count

fun count(query: IDBValidKey = definedExternally): 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.

MDN Reference