code: func NewRegisteredCounter(name string, r Registry) Counter {
  	c := NewCounter()
  	if nil == r {
  		r = DefaultRegistry
  	}
  	r.Register(name, c)
  	return c
  }
docs: // NewRegisteredCounter constructs and registers a new StandardCounter.