count method
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.
Implementation
external IDBRequest count([JSAny? query]);