length

Returns the number of key/value pairs.

MDN Reference