public int getCount() {
		if (instream != null) {
			if (isDistinct) {

				List<Tuple> tlist = new ArrayList<Tuple>();
				exp = exp.replaceAll("\\(", "");
				exp = exp.replaceAll("\\)", "");

				for (Integer i : instream.keySet()) {
					tlist = instream.get(i);
					for (Tuple t : tlist) {
						String val = t.getColValue(exp);
						if (val != null) {
							if (EvaluateStatement.GH.containsKey(key)) {
								EvaluateStatement.GH.get(key).add(val);
								break;
							} else {
								HashSet<String> temp = new HashSet<String>();
								temp.add(val);
								EvaluateStatement.GH.put(key, temp);
								break;
							}
						}
					}
					tlist.clear();
				}
				return 0;
			} else {

				return instream.size();
			}
		} else {
			return 0;
		}

	}