CompressedImageData:getMipmapCount
Gets the number of mipmap levels in the CompressedImageData. The base mipmap level (original image) is included in the count.
mipmaps = CompressedImageData:getMipmapCount()
mipmaps number The number of mipmap levels stored in the CompressedImageData.