sort and count
sort and count