nodes: 0, module; 1, function_definition; 2, function_name:count; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, expression_statement; 8, expression_statement; 9, expression_statement; 10, expression_statement; 11, return_statement; 12, comment:"""
          This method retrieve the total of records resulting from a given query.
  
          This attribute can be used compounded with query, filter,
          sort, order and facet methods.
  
          Examples:
              >>> from crossref.restful import Works
              >>> Works().query('zika').count()
              3597
              >>> Works().query('zika').filter(prefix='10.1590').count()
              61
              >>> Works().query('zika').filter(prefix='10.1590').sort('published').order('desc').filter(has_abstract='true').count()
              14
              >>> Works().query('zika').filter(prefix='10.1590').sort('published').order('desc').filter(has_abstract='true').query(author='Marli').count()
              1
          """; 13, assignment; 14, assignment; 15, assignment; 16, assignment; 17, call; 18, identifier:request_params; 19, call; 20, identifier:request_url; 21, call; 22, subscript; 23, integer:0; 24, identifier:result; 25, call; 26, identifier:int; 27, argument_list; 28, identifier:dict; 29, argument_list; 30, identifier:str; 31, argument_list; 32, identifier:request_params; 33, string; 34, attribute; 35, argument_list; 36, subscript; 37, attribute; 38, attribute; 39, string_content:rows; 40, call; 41, identifier:json; 42, subscript; 43, string; 44, identifier:self; 45, identifier:request_params; 46, identifier:self; 47, identifier:request_url; 48, attribute; 49, argument_list; 50, identifier:result; 51, string; 52, string_content:total-results; 53, identifier:self; 54, identifier:do_http_request; 55, string; 56, identifier:request_url; 57, keyword_argument; 58, keyword_argument; 59, string_content:message; 60, string_content:get; 61, identifier:data; 62, identifier:request_params; 63, identifier:custom_header; 64, call; 65, identifier:str; 66, argument_list; 67, attribute; 68, identifier:self; 69, identifier:etiquette
code: def count(self):
          """
          This method retrieve the total of records resulting from a given query.
  
          This attribute can be used compounded with query, filter,
          sort, order and facet methods.
  
          Examples:
              >>> from crossref.restful import Works
              >>> Works().query('zika').count()
              3597
              >>> Works().query('zika').filter(prefix='10.1590').count()
              61
              >>> Works().query('zika').filter(prefix='10.1590').sort('published').order('desc').filter(has_abstract='true').count()
              14
              >>> Works().query('zika').filter(prefix='10.1590').sort('published').order('desc').filter(has_abstract='true').query(author='Marli').count()
              1
          """
          request_params = dict(self.request_params)
          request_url = str(self.request_url)
          request_params['rows'] = 0
  
          result = self.do_http_request(
              'get',
              request_url,
              data=request_params,
              custom_header=str(self.etiquette)
          ).json()
  
          return int(result['message']['total-results'])