Count number of Areas in Gridgraph?

I was wondering if there was a way to Count the number of Areas created after i do a scan of the scene? I feel it has something to do woth area ID, but not sure how to access… thank you in advance


You could do something like this:

HashSet<uint> areas; => {
    if(node.Walkable) areas.Add(node.Area);
return areas.Count;