func (c *Counter) Set(newValue int64) int64 {
	return atomic.SwapInt64(&c.value, newValue)
}
Set implements stats.Counter.
package stats
import "sync/atomic"
type Counter struct {
	value int64
}
func (c *Counter) Value() int64 {
	return atomic.LoadInt64(&c.value)
}