statsd plugin: measure min, max, sum and count

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