Fix calculating the duplicates in case of multiple result files

As "results" contains the total number of annotations across result files,
we need to fix calculating the duplicates per result file by looking at
"results" before and after "annotations" were added.