// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class NofN {
    private static int total = 0;
    private int me;
    public NofN() {
        total++;
        me = total;
    }
    public String toString() {
        return ("I am " + me + " of " + total);
    }
    public static void main(String[] args) {
        NofN a = new NofN();
        NofN b = new NofN();
        NofN c = new NofN();
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
    }
}
