extract arg length into variable