$c++; while(code here){ And I do my update here }