Python: Count items and sort by incidence