Stuart,
Try invoking the TOC macro of your choice with the following format
<$macrocall $name="toc-selective-expandable" tag=<<currentTiddler>> exclude="exclusionfilter" />
Where exclusionfilter is where "where the tag count is zero"
Personally I would build my own, toc macro for such an example.
Regards
Tony