Add GetLevelCount to the basetexture class.