add_newrows function

Add the newrows variable to the results dataframe.