count

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

Retrieves the number of records matching the given key or key range in query.

If successful, request's result will be the count.

MDN Reference