added line counting script
fixed line ending in 1 file, changed code to clear file before init