/**
   * Creates a new counter with the primary key. Does not add the counter to the database.
   *
   * @param name the primary key for the new counter
   * @return the new counter
   */
  public Counter create(String name) {
    Counter counter = new CounterImpl();

    counter.setNew(true);
    counter.setPrimaryKey(name);

    return counter;
  }