Sorting is fine, counting isn't