/**
   This program demonstrates the Countable class.
*/

public class StaticDemo
{
   public static void main(String[] args)
   {
      int objectCount;

      // Create three instances of the 
      // Countable class.
      Monster object1 = new Monster();
      Monster object2 = new Monster();
      Monster object3 = new Monster();

      // Get the number of instances from
      // the class's static field.
      objectCount = object1.getMonsterCount();
      System.out.println(objectCount + 
                    " instances of the class " +
                    "were created.");
  }
}
