sampled-counters npm module for keeping counters and taking averaged samples of their values at intervals.