added counter for log entries