added rightShift, sortCount correct
comments