docs: int numOpenSegments() {
          int numOpen = 0;
          for (PBDSegment segment : m_segments.values()) {
              if (!segment.isClosed()) {
                  numOpen++;
              }
          }
  
          return numOpen;
      }