length

The length read-only property of the Storage interface returns the number of data items stored in a given Storage object.

MDN Reference