You can use this ode within your template files. Just put this lines of code within your /templates/yourtemplate/yourfile.tpl
{php}
$query ="SELECT COUNT(id) from tblclients ";
$result = mysql_query($query);
$data = mysql_fetch_array($result);
echo "total clients :".$data[0];
{/php}