Fixed a derp and now counting sort is good to go!