Animate the shopping cart entity count when it changes.
Fix logic for animation.