properly count log entries.