count_record_refs
