public static int getCount(GR gr) {
    int c = 0;
    Iterator<GR> iterator = memmodel.iterator();
    int i = 0;
    while (iterator.hasNext()) {
      if (iterator.next().isEqual(gr.getLeft(), gr.getGr(), gr.getRight())) c++;
    }

    return c;
  }
  public static Set<String> getLeftList(String w2, String gr) {
    Set<String> s = new TreeSet<String>();
    Iterator<GR> iterator = memmodel.iterator();

    while (iterator.hasNext()) {
      GR g = (GR) iterator.next();
      if (g.isRightEqual("online") && g.isGrEqual("dobj")) s.add(g.getLeft());
    }

    return s;
  }