TiVo interview question

How would one implement reference counted objects?