cleans up path traversal
counts lines in file
counts empty lines in file