Update resource count on save/delete entity