In the PHP you need to have the logic that gets the amount. It seems you have that, which is accessed by the function
GetOrderCounts($CustLogin) where $CustLogin is an autopopulated variable.
If not, you will need something like this:
Code:
$TotalCustomer = GetOrderCounts($CustLogin);
Now the variable
$TotalCustomer contains the amount. Next up, you need to pass that info to smarty via code similar to this:
Code:
$smarty->assign('varNameYouWantToUseInSmarty', $TotalCustomer);