code: func (a *AvgRateCounter) Rate() float64 {
  	hits, value := a.hits.Rate(), a.counter.Rate()
  
  	if hits == 0 {
  		return 0 // Avoid division by zero
  	}
  
  	return float64(value) / float64(hits)
  }
docs: // Rate Returns the current ratio between the events count and its values during the last interval