$ npm install lodash.countby
The lodash method _.countBy exported as a Node.js module.
_.countBy
Using npm:
$ {sudo -H} npm i -g npm $ npm i --save lodash.countby
In Node.js:
var countBy = require('lodash.countby');
See the documentation or package source for more details.