added a sed command to replace / with newline, also, count the number of lines.