initialise oldcounter in updateProgress