public class Verifier
{
    public static final String EXAMPLE1_FILE = "example1.txt";
    public static final int EXAMPLE1_NUMBER_OF_BAGS = 4;
    
    public Verifier (boolean debug)
    {
        _debug = debug;
    }

    public final boolean verify ()
    {
        Rules theRules = new Rules(_debug);
        Inventory inv = theRules.parse(EXAMPLE1_FILE);

        if (_debug)
            System.out.println("\nLoaded rules:\n\n"+inv);

        int count = inv.bagCount(LuggageProcessing.BAG_TYPE);

        if (count == EXAMPLE1_NUMBER_OF_BAGS)
            return true;
        else
        {
            System.out.println("Invalid number of bags: "+count);

            return false;
        }
    }

    private boolean _debug;
}
@@ -109,32 +109,38 @@
 al int EXAMPLE1_
+TOTAL_
 NUMBER_OF_BAGS =
@@ -144,15 +144,12 @@
 S = 
-4;%0A    
+32;%0A
 %0A   
@@ -463,17 +463,22 @@
 t = inv.
-b
+totalB
 agCount(
@@ -537,16 +537,22 @@
 XAMPLE1_
+TOTAL_
 NUMBER_O
@@ -657,16 +657,22 @@
 mber of 
+total 
 bags: %22+

Update Verifier.java