Here you can find the answer: http://www.woothemes.com/flexslider .
<script type="text/javascript" charset="utf-8"> $(window).load(function() { $('.flexslider').flexslider({ animation: "slide", controlsContainer: ".flex-container", start: function(slider) { $('.total-slides').text(slider.count); }, after: function(slider) { $('.current-slide').text(slider.currentSlide); } }); }); </script>
If you want even the first slide to be counted, you can add to the launch function:
$('.current-slide').text(slider.currentSlide);
If you want the current slide to start with number 1 (not 0), you can do:
$('.current-slide').text(slider.currentSlide+1);
source share