get queue size for each iteration