added PathHelper::getPathDepth()