/**
 * A simple Counter class, such as is used to count entrants to a concert.
 *
 * @version 2006 Sept 03 (initial)
 * @author Mark Fickett
 */

public class Counter {
	private int count;

	/**
 	 * Create a new Counter, initially with a count of zero.
	 */
	public Counter() {
		count = 0;
	}

	/**
	 * @return the current count of this Counter.
	 */
	public int getCount() {
		return count;
	}

	/**
	 * Increment the count by one.
	 * @return the new count
	 */
	public int incrementCount() {
		count++;
		return count;
	}

	/**
	 * Reset the count (to zero).
	 */
	public void reset() {
		count = 0;
	}
}

