The following program has no importance of its own. It just counts the number of objects created through the use of a for loop using a static field inside the class Counter
@JasCav is right, however you can get it to compile:
for (int i=0;i<50;i++) new Counter();