compare count of sort