GetOverlayCount example for Visual Basic
MsgBox RasterProc.GetOverlayCount(LEADRasterView1.Raster, 0)