#!/usr/bin/python3
"""

Function that appends a string at the end of a text file (UTF8) and returns
the number of characters added

"""


def append_write(filename="", text=""):
    """appends a string at the end of a text file (UTF8)
    Arguments:
        filename (file): file
        text (str): string to write
    Returns:
        The number of characters added
    """
    with open(filename, mode="a", encoding="utf-8") as f:
        return(f.write(text))
