Returns:
-
String
The output string, based on the templates provided and the count of items.
Formats the count of items in the collection based on string templates for the cases of one item, many items, or zero items. Each formatter string passed to this function is run through sprintf function with the count as a sole argument, allowing the count to be inserted into it (see example).
Parameters:
-
The string to display when count is zero
-
The string to display when count is one
-
The string to display when count is not zero or one.