public int DBCount(String Journal, String from, String to)
	{
		if(Journal==null) return 0;
		Journal = DB.injectionClean(Journal);
		from = DB.injectionClean(from);
		to = DB.injectionClean(to);

		synchronized(Journal.toUpperCase().intern())
		{
			int ct=0;
			DBConnection D=null;
			try
			{
				D=DB.DBFetch();
				final ResultSet R=D.query("SELECT CMFROM,CMTONM FROM CMJRNL WHERE CMJRNL='"+Journal+"'");
				while(R.next())
				{
					if((from!=null)&&(!from.equalsIgnoreCase(DBConnections.getRes(R,"CMFROM"))))
					   continue;
					if((to!=null)&&(!to.equalsIgnoreCase(DBConnections.getRes(R,"CMTONM"))))
					   continue;
					ct++;
				}
			}
			catch(final Exception sqle)
			{
				Log.errOut("Journal",sqle);
				return ct;
			}
			finally
			{
				DB.DBDone(D);
			}
			return ct;
		}
	}