statsd plugin: measure latency min, max, sum and count

This implements part of the feature request I opened earlier (#402).