Setup sorting of mediatypes by their count.