def save_counter(counter, filepath):
    """
    Method to save counter to a .tsv file

    parameters
    -----------
    :param counter: collections.Counter
    :param filepath: str (path to .tsv file)
    :return: int
        Number of elements in the counter
    """
    with open(filepath, 'w+', encoding="utf8") as f:
        i = 0
        for k, v in counter:
            if k.strip():
                if k != '\"':
                    f.write("{}\t{}\n".format(k, v))
                    i += 1
    return i