Added a counter with logic to animate properly