update stat counters