FreeMarker Error : left-hand operand: Expected a hash, but this evaluated to a sequence
I Hope you've accessing it wrongly.
As per your example, the list name is product. So,
<#assign totalProducts = cModel.getProducts()?size>
Should return back the size of the products.
Hope it helps.