@property
    def num_fields(self):
        return get_field_count(self._ldefn)
Returns the number of fields in the Layer.
dataset/ETHPy150Open dcramer/django-compositepks/django/contrib/gis/gdal/layer.py/Layer.num_fields