corrected cycle counter with calculation