in reply to Re: counting leading white spaces
in thread counting leading white spaces

Or:

/^\s*/ && $+[0]