function to reset backend counters