Returns the number of images.