Added comment support in count-delimiters

Opening brackets or braces in comment lines would mess up the count.