Solved error in "count".
Now looks into the folder CompletedTraces too for trace files.
Takes care of trace files with the following format:
01b_1;2_tachd_p_ti_T_frame-0006179.png.MAK.traced