update qcounter