implement queue count and queue clear