add count_sort method