Picture.ImageCount
From Xojo Documentation
Read-Only Property (As Integer )
The number of indexed images in the picture.
Notes
This applies to image formats that can contain multiple images, such as TIFF.
Example
This example gets the number of indexed images in the picture.