count

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

The count() method of the IDBIndex interface returns an IDBRequest object, and in a separate thread, returns the number of records within a key range.

MDN Reference