adding RateSink and RateAccumulator, which measure the count and provide basic rate accounting and estimation.
make RateSink getter configurable, add docstrings