My count inversions program