inArray = function inArray(list, value) {
  const values = _.isArray(value) ? value : [value];
  return values.some(value => list.indexOf(value) >= 0);
}
Count the number of real words in a string
@param {string} text - the text to count
@returns {number} the number of words in `text`