2 classes, Counter and BucketCounter, both extensions of Hash.  Counter will increment a key by 1 each time something is added.  Bucket counter supports integer intervals.  You can set an interval (example) 1-10, and adding any number between 1 and 10 will increment that bucket