code: def sparql_count(self, query, flush=None):
          
          return self.count_statements(query, language='sparql', type='tuples',
              flush=flush)
docs: Count results for a Sparql query.
  
          :param query: sparql query string
          :rtype: int