sorting algorithms counting operations code example Example: count is inplace or not counting sort is not an in-place algorithm