def get_9s(percentile):
    """
    Method that gets the amount of 9s in a percentile
    Args:
        percentile: The percentile to get the amount of 9s for
    Returns:
        The amount of 9s of the percentile, so 0.4->0, 0.92->1, 0.994->2, etc.
    """
    counter = 1
    # Limit to 20 nines, probably won't ever see higher amount than this due to exponential growth
    while counter < 20:
        if percentile + 1/(10 ** counter) < 1.0:
            break
        counter += 1

    return counter - 1