length

open override val length: Int(source)

Returns the number of tokens.

MDN Reference