Successful implementation of CountInversion