The count of items.
The singular form of the word.
Optional
pluralWord: stringThe plural form of the word. If not provided, defaults to the singular form with an "s" appended.
The template string to format the output. Occurrences of "%d" for the count and "%s" for the word will be replaced. Defaults to "%d %s".
The rendered template string.
Format a count with the appropriate singular or plural word.
A count can be a number or a string that can be parsed to a number.
If the parsed count is NaN, it defaults to 0.