added task count and event delegation to repo