Count unique data item values

A variant:

{{ apply .Site.Data.books "index" "." "Year" | uniq | len }}
8 Likes