The read-only length property of the MediaList interface returns the number of media queries in the list.
length
MDN Reference