don't really need the lambda here: counts.sort(reverse=True) does the right thing in this case