public static Counter newCounter(boolean threadSafe) {return threadSafe ? new AtomicCounter() : new SerialCounter();}

public static Counter NewCounter(bool threadSafe){return threadSafe ? (Counter)new AtomicCounter() : new SerialCounter();}
