The numberOfItems property of the SVGNumberList interface returns the number of items in the list.
numberOfItems
MDN Reference