Know total points between 2 nodes in a Point Graph path

Hello there,
How to know the total points between 2 nodes in a point graph path? Like after checking if the path is possible between 2 nodes using PathUtilities.IsPathPossible(node1, node2), I want to know how many points are in the path. Please tell me the best performant way.
THANKS

Hi

The only way to calculate this is to calculate a path and check the number of nodes in it. See Searching for paths - A* Pathfinding Project