Counts lines of a file