import math


def pretty_stats(x, y):
    """
        Convert file counts and total file counts into an ascii graph 
        indicating % of total files found.
    """
    x = float(x)
    if x == 0:
        m = 0
    else:
        m = math.trunc(math.ceil(((x/y) * 100) / 5))
    return (" [" + '#'*m + '.'*(20 - m) + "] ")