code: def kdf_iterations(self):
          
  
          encryption_algo = self['algorithm'].native
  
          if encryption_algo == 'pbes2':
              return self['parameters']['key_derivation_func']['parameters']['iteration_count'].native
  
          if encryption_algo.find('.') == -1:
              if encryption_algo.find('_') != -1:
                  return self['parameters']['iterations'].native
  
              raise ValueError(unwrap(
                  '''
                  Encryption algorithm "%s" does not have a registered key
                  derivation function
                  ''',
                  encryption_algo
              ))
  
          raise ValueError(unwrap(
              '''
              Unrecognized encryption algorithm "%s", can not determine key
              derivation iterations
              ''',
              encryption_algo
          ))
docs: Returns the number of iterations that should be run via the KDF.
  
          :return:
              An integer