Add rolling histogram and factor out anomaly detection

`golint`:

    counter.go:84:4: should replace c.countedBuckets += 1 with c.countedBuckets++