$def with (title, diffs)

$title

$for type, count in diffs:
TypeCount
$type$count