I would hyphenate reference-counted.  Not a big deal, though.