Simplified code with single MultipleIntervalCounter class