Get task queue sizes

Returns the sizes of task queues.