function countByGroup(category) {
const group = Object.groupBy(lobbyists.filter(d => d.COP >= 14), d => d[category])
return Object.entries(group).map(([key, value]) => {
return {[category]: key, count: value.length}
}).filter(d => d[category] && d[category] !== "NaN")
.sort((a, b) => b.count - a.count)
}