[bugfix] int means loop count