add counter cache of freeformats and datafiles to datasets and paperproposals.

To ease filtering datasets by workbook or freeformats. no joins are needed.