count_sentences

Isto é usado para contar o número de sentenças em uma variável.

Exemplo 5-6. count_sentences

index.php:
$smarty = new Smarty;
$smarty->assign('articleTitle', 'Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe.');
$smarty->display('index.tpl');
index.tpl:
{$articleTitle}
{$articleTitle|count_sentences}
MOSTRA:
Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe.
2