import java.io.serializable;
public class counter implements serializable{
// initialize the bean on creation
int count = 0;
// parameterless constructor
public counter() {
}
// property getter
public int getcount() {
// increment the count property, with every request
count++;
return this.count;
}
// property setter
public void setcount(int count) {
this.count = count;
}
}
