original_string: public function count($entityType, $filter = '')
  	{
  		$params = array('type_name' => $entityType);
  		if (!empty($filter)) {
  			$params['filter'] = $filter;
  		}
  		return $this->post('entity.count', $params);
  	}
code: public function count($entityType, $filter = '')
  	{
  		$params = array('type_name' => $entityType);
  		if (!empty($filter)) {
  			$params['filter'] = $filter;
  		}
  		return $this->post('entity.count', $params);
  	}
code_tokens: public function count ( $ entityType , $ filter = '' ) { $ params = array ( 'type_name' => $ entityType ) ; if ( ! empty ( $ filter ) ) { $ params [ 'filter' ] = $ filter ; } return $ this -> post ( 'entity.count' , $ params ) ; }
docstring: Count the number of records in an entityType.
  
  @param string $entityType The entityType of the entity
  @param string $filter     The expression to use to filter the results.
docstring_tokens: Count the number of records in an entityType .