count split inversions for divide and conquer