resetting stale_count