Rename all ref_count to refs in struct