def count_leading_newlines(s):
    return s[:-len(s.lstrip())].count('\n')
count number of leading newlines
dataset/ETHPy150Open KristoforMaynard/SublimeAutoDocstring/docstring_styles.py/count_leading_newlines