Counter moving logic