package rjt; public class Counter { public static int n; public static int next() { n = n + 1; return n; } }