private static void Countsplit(int i, int n) {
		// TODO Auto-generated method stub
		
		int[] arraya = Arrays.copyOfRange(array, i, n/2);
		int[] arrayb = Arrays.copyOfRange(array, (n/2) +1, n);
		int ll = 0;
		int j=0;
		int k=0;
		for(ll=i;ll<n;ll++){
			
			if(arraya[j]<arrayb[k]){
				
				array[ll] = arraya[j];
				j++;
	if(!(j<arraya.length)){
		j--;
	}			
				
			}else{
				
				array[ll] = arrayb[k];
				k++;
				if(!(k<arrayb.length)){
					k--;
				}
				total = total + n/2 - j+1;
			}
			
		}
		}