code: public int numLines() {
      int r = header.size();
      for(MeasurementGroup m : groups) {
        r += 1 + m.measurements.size();
      }
      return r;
    }
docs: Number of lines recommended for display.
  
  @return Number of lines