Navmesh, get path distance?

Hello,

Using UPathFollowingComponent I am able to utilize Unreals pathfinding in C++, however I can not find anywhere how to get the actual path distance.

For example, an enemy should not chase the hero if the path is longer than 2000 units (Not the distance to the hero, but the actual path taken).

Any idea how to get the path distance?
Thanks

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/AI/Navigation/FNavigationPath/GetLength/index.html

There is a BP node called Get Path Length as well.