Updates the ball count according to screen size.