add numberOfTasks interface to topology