inversion count