Isn't their example even simpler? In JS/TS, for example:
```ts
const pluralizePhrase = (noun: string, count: number) =>
count == 1 ? `There is one ${noun}` : `There are ${count || "no"} ${noun}s`;
```