add tasks_count() to the ticker class