Resetting static counters to prevent a size explosion.