@Dalle, it doesn't work because you also need to create a new Scoreboard (or counter) object in the world class. It should be like Scoreboard s = new Scoreboard(java.lang.String) Something like that. The code posted here is from the balloon popping game, which is one of the scenarios that come with the greenfoot software. You can find scoreboard and counter there, go check it out ;)
2011/12/31
YUM!
2011/12/31
Crab
2011/12/28
Crab
2011/12/28
Crab
2011/12/16
balloons
2011/12/13
Nightmare: Emergence
2011/12/13
Nightmare: Emergence
2011/12/9
Nightmare: Emergence
2011/12/8
Nightmare: Emergence