def get_depth(string):
    """Calculates amount of whitespaces leading the given string and returns int"""
    # expected input (example):
    # string = ['             09140 Cellular Processes']
    #
    # expected output (example):
    # depth = 13

    depth = len(string) - len(string.lstrip(' '))
    return depth