add value to counter