add get queue size function