Correctly report number of tasks in tasklist.