renamed all_entries to entry_counts