count lines of file