It should be wherever your count variable is. But, for one thing, you cannot use getX on a World object. For another, unless your world is unbound, an actor can never have an x-coordinate value less than zero.
Thanks for your help danpost I'm trying to make scoreboard system for a pong type game that I'm making for my university assignment.
Keep the scores in your World subclass.
There is also the alternative of keeping them in your Ball class. However, you must only use one, and the same, ball throughout your game. Also, you would need to keep a reference to that ball in your World subclass if the ball is ever removed from the world during a game (so you can put the same ball back into the world).