Expose a rollup of all template keywords

[#77884744]
If you use `Hash.new(0)` as the arg to `each_with_object` above you could maybe simplify these two lines to

    h[kw.strip.downcase] += 1