change get_facet_counts to return OrderedDict