Renamed ref_count to derivation_count and ref_count_plus to ref_count.