public static String optionsCount(String stock) {
		String httpdata = getHtml(yahoobase + "/op?s=" + stock);
		if (httpdata.contains(">There is no")
				|| httpdata.contains("Check your spelling")
				|| httpdata.indexOf("View By Expiration") < 0)
			return "0";
		try {
			httpdata = httpdata.substring(httpdata
					.indexOf("View By Expiration"));
			httpdata = httpdata.substring(0, httpdata.indexOf("table"));

		} catch (Exception e) {
			e.printStackTrace();
		}
		return "" + (httpdata.toLowerCase().split("a href").length - 1);
	}