Sort class: add get_num_kernels method

Compiles, but implementation is somewhat incomplete.