update the vote counter logics.