Counting Inversion