added max_delta, changed counters to 64 bit