def __len__(self):
        return self.layer_count
Returns the number of layers within the data source.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/gis/gdal/datasource.py/DataSource.__len__