win32gui.ImageList_GetImageCount

int = ImageList_GetImageCount()

Return count of images in imagelist