Merge sort part 10(Counting the number of inversions in an array)