The size read-only property of the MediaKeyStatusMap interface returns the number of key/value paIrs in the status map.
size
MDN Reference