I have recently started using Greenfoot and have been working on the little crab scenario.
However, I have encountered a problem where i have created a counter but am not sure how to make the numbers change when the crab eats a worm.
Find the code in the Crab class (it should be in a method that looks for the worm) where the crab 'eats' the Worm class.
You will want to assign a new value to your counter there. Something like, " counter = counter + 1; ", or you can simplify that line and use the increment operator - "counter++;" - that will increase the counter by 1.