locate stack and create pattern to open image files
Find all images with the same pattern as the selected file
counts the number of images in the stack