write.mon.complete() writes actual number of records in dataframe (instead of using the number from unparsed.header).