code: def num_feature(self):
          
          out_num_feature = ctypes.c_int(0)
          _safe_call(_LIB.LGBM_BoosterGetNumFeature(
              self.handle,
              ctypes.byref(out_num_feature)))
          return out_num_feature.value
docs: Get number of features.
  
          Returns
          -------
          num_feature : int
              The number of features.