Update how-can-i-build-dynamic-menu-with-products-counter.md

Add code snippet and Smarty syntax