creating animations for counting numbers