!752

!include #1004863 // Dynamic Concepts

sclass Counter extends Concept {
  long n;
  
  *() {}
  *(long *n) {}
}

p {
  mainConcepts.loadConcepts();
  mainConcepts.autoSaveConcepts();
  
  long n = max(0, maxL(collect(mainConcepts.listConcepts(Counter.class), "n")))+1;
  print("n=" + n);
  new Counter(n);
}