The SVGGeometryElement.pathLength property reflects the A number.
SVGGeometryElement.pathLength
MDN Reference