function countWords(subject, pattern, flags) {
    return words(subject, pattern, flags).length;
  }
Counts the number of words in `subject`.

@function countWords
@static
@since 1.0.0
@memberOf Count
@param {string} [subject=''] The string to split into words.
@param {string|RegExp} [pattern] The pattern to watch words. If `pattern` is not RegExp, it is transformed to `new RegExp(pattern, flags)`.
@param {string} [flags=''] The regular expression flags. Applies when `pattern` is string type.
@return {number} Returns the number of words.
@example
v.countWords('gravity can cross dimensions');
// => 4

v.countWords('GravityCanCrossDimensions');
// => 4

v.countWords('Gravity - can cross dimensions!');
// => 4

v.words('Earth gravity', /[^\s]+/g);
// => 2