add numberOfTasks interface to topology
Merge pull request #6 from go-distributed/f

add numberOfTasks interface to topology