public void drawCounter(Graphics g, Position counterPosition, int windowWidth, int windowHeight, int rowHeight, int counter) {
		int xOffset = 0, yOffset = 0;

		BufferedImage dummy = createRowImage(config.getFontName(), "" + config.getSleepTime(), "255", true, config.getBackgroundColor(), rowHeight, null, false);

		BufferedImage img = createRowImage(config.getFontName(), "" + counter, "255", true, config.getBackgroundColor(), rowHeight, null, false);

		if (counterPosition == Position.UPPER_LEFT) {
			xOffset = 0;
			yOffset = 0;
		}
		else if (counterPosition == Position.UPPER_RIGHT) {
			xOffset = windowWidth - dummy.getWidth();
			yOffset = 0;
		}
		else if (counterPosition == Position.LOWER_LEFT) {
			xOffset = 0;
			yOffset = rowHeight * (config.getNRows() - 1) + (config.getShowHeader() ? config.getUpperRowBorderHeight(): 0);
		}
		else if (counterPosition == Position.LOWER_RIGHT) {
			xOffset = windowWidth - dummy.getWidth();
			yOffset = rowHeight * (config.getNRows() - 1) + (config.getShowHeader() ? config.getUpperRowBorderHeight(): 0);
		}
		else if (counterPosition == Position.CENTER) {
			xOffset = (windowWidth / 2) - (dummy.getWidth() / 2);
			yOffset = (windowHeight / 2) - (dummy.getHeight() / 2);
		}

		g.setColor(config.getBackgroundColor());
		g.fillRect(xOffset, yOffset, dummy.getWidth(), dummy.getHeight());
		g.drawImage(img, xOffset, yOffset, img.getWidth(), img.getHeight(), this);
	}