atempt to remove fileDownloadReport's duplicated code
replace reportWriter with UniqueCountWriter