How can I display the current number of the picture in a slidesohw?

I want to display the current number of the picture out of the total number of the pictures, in the format x/y. How can I do this?
The script is this.
Thanks