Added counter for the images