def count(opts={})
      sq = Tripod::SparqlQuery.new(self.as_query(opts))
      count_sparql = sq.as_count_query_str
      result = Tripod::SparqlClient::Query.select(count_sparql)

      if result.length > 0
        result[0]["tripod_count_var"]["value"].to_i
      else
        return 0
      end
    end
def count(opts={})
      sq = Tripod::SparqlQuery.new(self.as_query(opts))
      count_sparql = sq.as_count_query_str
      result = Tripod::SparqlClient::Query.select(count_sparql)

      if result.length > 0
        result[0]["tripod_count_var"]["value"].to_i
      else
        return 0
      end
    end
Return how many records the current criteria would return

 @option options [ String ] return_graph Indicates whether to return the graph as one of the variables.