implement LogCounter.pm