Ruby script that counts opening and closing tags in an html document.