def plural(word, items):
    """Returns "N words" or "1 word"."""
    count = len(items) if isinstance(items, (dict, list, set, tuple)) else items
    return "%s %s%s" % (count, word, "s" if count != 1 else "")