#Count Inversions #Counts the number of inversions in a list. Inverions defined as occurence of list[i] > list[j] for all combinations of i,j where i