Uncomment the code to update the counters