Query queue size

This allows to retrieve the number of remaining elements in a queue.