package moreservlets;

import java.util.Date;

/** Simple bean used by CounterTag. For boats example.
 *  <P>
 *  Taken from More Servlets and JavaServer Pages
 *  from Prentice Hall and Sun Microsystems Press,
 *  http://www.moreservlets.com/.
 *  &copy; 2002 Marty Hall; may be freely used or adapted.
 */

public class Count {
  private int count = 1;
  private Date startDate = new Date();

  public int getCount() {
    return(count);
  }

  public void incrementCount() {
    count++;
  }

  public Date getStartDate() {
    return(startDate);
  }
}
