placed resource counter back in