basic form that displays number of inversions in a given comma-delimited string