collection @documents
attributes :id, :title, :created_at

collection @documents
attributes :id, :title, :created_at, :percentage

node :counters do  |document|
  {
    people: document.context_cache.fetch('people', []).count,
    organizations: document.context_cache.fetch('organizations', []).count,
    places: document.context_cache.fetch('places', []).count,
    dates: document.context_cache.fetch('dates', []).count
  }
end

Add counters information to documents
[aphrodite] Add counters information to documents
