depth

Returns the number of path segments in this pointer.

Return

The count of segments; 0 for the root pointer.