@property
    def layer_count(self):
        return capi.get_layer_count(self._ptr)
Returns the number of layers in the data source.
dataset/ETHPy150Open django/django/django/contrib/gis/gdal/datasource.py/DataSource.layer_count