WHMCS Provisioning Doesn't Support co.za / co.uk Type Domains

Hi guys,

I've been struggling with some bugs with this plugin and I've realised it doesn't support TLDs like co.uk. For example, in the WHMCS server addon, it says this:

$sub = explode('.',$params['domain']);
if (count($sub > 2)) $request['domain'] = $sub[0];
else $request['domain'] = $params['configoption2'];

The trouble with this code is that if my domain is a co.uk or any other TLD with a '.' in it, the code b0rks.