Get task queue sizes

Returns the number of pending tasks for each task type in the queue.