Refactor links template
Switch to using template parameters
Split languages into data and md
Refactor generator
Add counts for sorting
Add counts to views