count log file lines

To count the lines of an existing log file, there is no need (and not suggested) to read all the content at once.