Added implementation of counting animation.