update to counter