$queueLength will return the queue length.
$queueLength
This will return the current queue length:
1client.command({2 name: "queueLength",3 code: `4 $queueLength5 `6});