long getLogSegmentCount() {
    return getLogSegmentToIndexSegmentMapping(validIndexSegments).size();
  }
@return the number of valid log segments starting from the first segment.
ambry-store/src/main/java/com/github/ambry/store/PersistentIndex.java