Changes to count where a single ab_name references a single reference_id