The numberOfItems read-only property of the SVGPointList interface returns the number of items in the list.
numberOfItems
MDN Reference