change facets to be list of dicts
add facet counts. descending order by count