LayersSet.
get_field_count
Return number of fields for the given layer number. FID is not taken into consideration.