Count entries for each item.