<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#">

<div py:def="contents()">
  <?python
  tags = {}
  for e in entries:
      for t in e.tags:
          tags[t] = tags.get(t, 0) + 1
  ?>
  <p py:for="t, n in tags.iteritems()">
    <a href="${`t`}">${t} (${n})</a>
  </p>
</div>

</html>
