Add function to TaskSet for getting the number of Promise<void>s

Add function to TaskSet for getting the number of Promise<void>s current...ly in the TaskSet. This is a const function that doesn't change the TaskSet in any way and simply provides a little bit of additional information that can be useful. In my particular case, knowing the size allows me to queue up an extra task when the last task is executing to perform resource cleanup.