I'll check, but point out that it counts lone } not brackets that are with preceded with code.
so
{
A=1;
}
and
{
A=1;}
and
{ A=1;}
and
{
A=1;
} B=2;
all give different counts
example 1 would be 1{ and 1} and 1 Code,
example 2 would be 1{ and 0} and 1 Code,
example 3 would be 0{ and 0} and 1 Code
example 4 would be 1{ and 0} and 2 Code
So I was not trying to match Open and Close counts I was distinguishing code from just a lone bracket which I don't really consider a line of 'code', I might add that …
John Z