JavaScript -Anzahl der Vorkommen in Array von Objekten

var result = array.reduce( (acc, o) => (acc[o.name] = (acc[o.name] || 0)+1, acc), {} );
Awful Albatross