I'm trying to get the total number of entires that match a .relatedTo() search.
{% set category = craft.categories.group('products').title(cat).first() %}
{% set entries = craft.entries.section('products').relatedTo(category).find() %}
I have tried ...
{% set entryCount = craft.entries.section('products').relatedTo(category).find().total() %}
But no joy. What Am I missing?