get line count,sum((1 for line in open('myfile.txt')))