length

Returns the number of ranges in the object.

MDN Reference