Move $config out of the driver script.
Allow single argument to either type or count.