title: ES6 / lodash count the number of occurrences of a character in a string
body: <p>I want to count the number of occurrences of a character in a string.</p>
  
  <p>This stack overflow post does that using ES5 but not ES6 or Lodash:</p>
  
  <p><a href="https://stackoverflow.com/questions/881085/count-the-number-of-occurrences-of-a-character-in-a-string-in-javascript">Count the number of occurrences of a character in a string in Javascript</a></p>
  
  <p>However, I want to know if there is a more ES6 way of doing this. Lodash solutions are also acceptable.</p>