More changes for searching and displaying tasks

Changes were also included to counting the number of tasks in a project.