Count of Smaller Numbers After SelfCount smaller elements to the right using indexed frequency state or merge-based counting.