Populate taskCount with number of tasks