/**
 * Smarty Function: Get total count for specific objects
 *
 * @access public
 * @param   array       Smarty parameter input array:
 *                      what: The type of count to show: "entries", "trackbacks", "comments"
 * @param   object      Smarty object
 * @return  string      The Smarty HTML response
 */
function serendipity_smarty_getTotalCount($params, &$smarty)
{
    if (!isset($params['what'])) {
        trigger_error("Smarty Error: " . __FUNCTION__ . ": missing 'what' parameter", E_USER_WARNING);
        return;
    }
    return serendipity_getTotalCount($params['what']);
}
/**
 * Smarty Function: Get total count for specific objects
 *
 * @access public
 * @param   array       Smarty parameter input array:
 *                      what: The type of count to show: "entries", "trackbacks", "comments"
 * @param   object      Smarty object
 * @return  string      The Smarty HTML response
 */
function serendipity_smarty_getTotalCount($params, &$smarty)
{
    if (!isset($params['what'])) {
        $smarty->trigger_error(__FUNCTION__ . ": missing 'what' parameter");
        return;
    }
    return serendipity_getTotalCount($params['what']);
}