adds tasks and counts them