[FEAT] Implement working inversion counter function

[FIX] remove extraneous console logs

[FIX] remove extra console logs