I want to count the number of occurrences of a character in a string.
This stack overflow post does that using ES5 but not ES6 or Lodash:
Count the number of occurrences of a character in a string in Javascript
However, I want to know if there is a more ES6 way of doing this. Lodash solutions are also acceptable.