count log file lines

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