The numberOfItems property of the SVGLengthList interface returns the number of items in the list. length is an alias of it.
numberOfItems
SVGLengthList
length
A non-negative integer that represents the number of items in the list.
See SVGLengthList for a complete example.