Updating counter