Błąd w szablonie widoku

/home/users/aph24/public_html/libraries/Smarty/plugins/modifier.count.php: 20

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