Number behind in pic count (1/10) etc.

Number behind in pic count (1/10) etc.

Hi there, 
Bit of a newb but just having a small problem using jquery cycle all plugin. I am trying to create an image gallery, with two buttons next and previous which work fine, and with a counter like (1/10) etc. I've got it to work but for some reason the slideshow never counts the first image so therefore is always one image behind.

Somebody pointed out to me it is probably that the array starts at 0 and something else at 1, but I'm not sure where to find this really so just wondered if somebody could help me. Here is the code in the head of my document.

<script type="text/javascript">

$(document).ready(function(){ 
$('#slideshow').cycle({
fx:'none', 
speed:'fast', 
timeout: 0, 
next:'#next',
prev:'#prev',
after: onAfter
});
});

function onAfter(curr,next,opts) {
var caption1 = (opts.currSlide +1) + '/' + opts.slideCount;
$('#caption1').html(caption1);
}
    </script>

in use with cycle all plugin.

thanks for any help!