Made get_reference_count more publicly available