func (v *Counter) Help() string {
	return v.help
}
Help returns the help string.
package stats
import (
	"strconv"
	"github.com/nooncall/shazam/log"
	"github.com/nooncall/shazam/util/sync2"
)
type Counter struct {
	i    sync2.AtomicInt64
	help string
}
func NewCounter(name string, help string) *Counter {
	v := &Counter{help: help}
	if name != "" {
		publish(name, v)
	}
	return v
}
func (v *Counter) Add(delta int64) {
	if delta < 0 {
		log.Warn("[stats] Adding a negative value to a counter, %v should be a gauge instead", v)
	}
	v.i.Add(delta)
}
func (v *Counter) Reset() {
	v.i.Set(int64(0))
}
func (v *Counter) Get() int64 {
	return v.i.Get()
}
func (v *Counter) String() string {
	return strconv.FormatInt(v.i.Get(), 10)
}