Or use a internal counter... wich i tend to use now as it can work in background allowing to do something else in meantime.