original_docstring: Return number of results having an expected value.
  
  		:param key: The key for the fields of the results for which the values are compared aginst the expected value.
  		:param expected: An expected value.
  		:return: Number of results that have a certain value for a given key.
  		
docstring: Return number of results having an expected value.
docstring_tokens: Return number of results having an expected value .
code: def number(self, key, expected):
  		"""Return number of results having an expected value.
  
  		:param key: The key for the fields of the results for which the values are compared aginst the expected value.
  		:param expected: An expected value.
  		:return: Number of results that have a certain value for a given key.
  		"""
  		cnt = 0
  		for value in self.fields(key, nokey_value=KeyError):
  			if value == expected:
  				cnt += 1
  		return cnt
code_tokens: def number ( self , key , expected ) : cnt = 0 for value in self . fields ( key , nokey_value = KeyError ) : if value == expected : cnt += 1 return cnt
short_docstring: Return number of results having an expected value.
short_docstring_tokens: Return number of results having an expected value .
comment: """Return number of results having an expected value.
  
  		:param key: The key for the fields of the results for which the values are compared aginst the expected value.
  		:param expected: An expected value.
  		:return: Number of results that have a certain value for a given key.
  		"""