add lua queue size function