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