Create Inversion_counter.py