public abstract int getNameCount ()

Returns the number of name elements in the path.

Returns:  the number of elements in the path, or 0 if this path only represents a root component