restored lost domain_count