A slight flaw: without the /s modifier on the substitution, this code will only match blocks that are one line long. (There's also a typo with the quoting of the string 'I counted'.)
I like the use of {10,} to make sure the delimiter is at least a certain length.