Graphics g = panel.getDebuggingGraphics();
You can print the counts for the drawing methods by calling the getCounts method of the DrawingPanel class as the last line of main: System.out.println(panel.getCounts());
There are different ways to correctly solve this problem, so your counts do not have to match if you manage to get 0 pixels of difference when your graphical output is compared to the expected output. But if you have a pixel difference, then the counts can provide you a sense of what you might be doing incorrectly (e.g., performing a drawing command too many times or too few times). Our sample solution produced these counts: {drawLine=128, drawOval=176, drawRect=3, fillOval=32, fillRect=3}