update docs example Appender in appenders chapter at #WriteYourOwnAppender

In Chapter Appenders, Section WriteYourOwnAppender, using the old sample code. Updated with current code from /logback-examples/src/main/java/chapters/appenders/CountingConsoleAppender.java