Update copy_count_by_ref.sh