using pipes as IPC mechanism to pass the tasks num. Do not report the number of tasks in the same process of scanner, because it's not instantly