Don't reset the counter every loop