class IntervalCount {

    public long resetIfExpiredAndTick() {
        if (isExpired()) {
            reset();
        }
        tick();
        return adder.sum();
    }

    public  IntervalCount(long intervalDurationMs);

}