corrected counter variable