code: func (p *Partition) readStatsFile() error {
  	p.stats = NewMeasurementCardinalityStats()
  
  	f, err := os.Open(p.StatsPath())
  	if os.IsNotExist(err) {
  		p.statsSize = 0
  		return nil
  	} else if err != nil {
  		return err
  	}
  	defer f.Close()
  
  	n, err := p.stats.ReadFrom(bufio.NewReader(f))
  	if err != nil {
  		return err
  	}
  	p.statsSize = n
  
  	return nil
  }
docs: // readStatsFile reads the stats file into memory and updates the stats size.