{% for cur_n in n %}
{{ cur_n }}-gram
Count
{% for n_gram, freq in n_grams[cur_n] %}
{{ n_gram }}
{{ freq }}
{% endfor %}
{% endfor %}