public int getPathCount() {
        return groupNames.length;
    }
Get the number of names (levels) that make up this path.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/GroupPath.java