The length read-only property of the TextTrackCueList interface returns the number of cues in the list.
length
MDN Reference