public void run() {
        System.out.println("Starting at " + c.getCount());
        for (int i = 0; i < 1000; i++) {c.increase();}
        System.out.println("Stopping at " + c.getCount());
    }
    
}
    
class Counter {
    private int n = 0;
    
    public void increase() {
        n++;
    }
    
    public int getCount() {
        return n;
    }