code: @Override
      public int getNameCount() {
          String context = this.path;
          // Kill trailing slashes
          if (context.endsWith(ArchivePath.SEPARATOR_STRING)) {
              context = context.substring(0, context.length() - 1);
          }
          // Kill preceding slashes
          if (context.startsWith(ArchivePath.SEPARATOR_STRING)) {
              context = context.substring(1);
          }
          // Root
          if (context.length() == 0) {
              return 0;
          }
          // Else count names by using the separator
          final int pathSeparators = this.countOccurrences(context, ArchivePath.SEPARATOR, 0);
          return pathSeparators + 1;
      }
docs: {@inheritDoc}
  
  @see java.nio.file.Path#getNameCount()