Fatal error: Uncaught Error: Call to a member function count() on string in /home/beaut216/public_html/app/design/frontend/Sm/market_child_rtl/Magento_Catalog/templates/product/list.phtml:25 Stack trace: #0 /home/beaut216/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /home/beaut216/public_html/vendor/magento/framework/View/Element/Template.php(271): Magento\Framework\View\TemplateEngine\Php->render(Object(MGS\Brand\Block\Index\Collection\Interceptor), '/home/beaut216/...', Array) #2 /home/beaut216/public_html/generated/code/MGS/Brand/Block/Index/Collection/Interceptor.php(570): Magento\Framework\View\Element\Template->fetchView('/home/beaut216/...') #3 /home/beaut216/public_html/vendor/magento/framework/View/Element/Template.php(301): MGS\Brand\Block\Index\Collection\Interceptor->fetchView('/home/beaut216/...') #4 /home/beaut216/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(1099): Magento\Framework\View\Element\Template->_toHtml() #5 /home/beaut216/public_html/ven in /home/beaut216/public_html/app/design/frontend/Sm/market_child_rtl/Magento_Catalog/templates/product/list.phtml on line 25