def count_indents(text):
    """Takes a string and counts leading white spaces, return int count"""
    # one way
    # counts = text.rstrip().count(' ') if text.startswith(' ') else 0
    # return counts
    
    # another way
    counts = len(text) - len(text.lstrip())
    return counts