Test and compare counting sort.