Fix Counter to init logger before using it.