To run this algorithm, the first argument in the program is the number of elements n in the array to be sorted, followed by n integers. To build the executable, run g++ countSort.cpp