possibly faster line counting at startup