program now tracks global word counts and constructs dataframes for all lines