inversionCounter