def pluralize(counter, singular_postfix='', plural_postfix='s'):
    """
    Simpliest implementation of Django template's filter pluralize.

    Usage in a template:
    Like{{ num_of_likes|pluralize:("", "s") }}     -> 10 Likes, 1 Like
    Cit{{ num_of_cities|pluralize:("y", "ies") }}  -> 10 Cities, 1 City

    :param counter: int
    :param singular_postfix: str a filtered word's singlular form
    should be postfixed with
    :param plural_postfix: str a filtered word's plural form should be postfixed with
    :return: str
    """
    if counter == 1:
        return singular_postfix
    else:
        return plural_postfix