class A { private int count; public A() { count = 1; } public int method() { return 1; } public void setCount(int count) { this.count = count; } public int getCount() { return this.count; } }