Add statsd-style stats tracking.