def join_strings(strings, glue=" AND "):
    """
    Returns the non-empty strings joined together with the specified glue.

    @param   glue  separator used as glue between strings
    @return        (joined string, number of strings actually used)
    """
    strings = list(filter(None, strings))
    return glue.join(strings), len(strings)