Błąd w szablonie widoku

/libraries/Smarty/plugins/modifier.count.php: 20

count(): Parameter must be an array or an object that implements Countable