Error:: An exception has been thrown during the rendering of a template ("count(): Parameter must be an array or an object that implements Countable") in "index.html" at line 40.