public int getAmountOf(String type) throws SQLException {
		ArrayList<String> list = getCoupons();
		int item = 0;
		int econ = 0;
		int rank = 0;
		int xp = 0;
		
		for (String name : list) {
			Coupon c = getBasicCoupon(name);
			if (c instanceof ItemCoupon) item++;
			if (c instanceof EconomyCoupon) econ++;
			if (c instanceof RankCoupon) rank++;
			if (c instanceof XpCoupon) xp++;
		}
		
		if (type.equalsIgnoreCase("Item"))
			return item;
		else if (type.equalsIgnoreCase("Economy"))
			return econ;
		else if (type.equalsIgnoreCase("Rank"))
			return rank;
		else if (type.equalsIgnoreCase("Xp"))
			return xp;
		else
			return 0;
	}