code: function ending(count, one, few, other) {
      if (count % 10 === 1 && (count % 100 < 11 || count % 100 > 19)) {
        return one;
      } else if (
        (count % 10 >= 2 && count % 10 <= 9) &&
        (count % 100 < 11 || count % 100 > 19)) {
        return few;
      } else {
        return other;
      }
    }
docs: rules from http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#lt