Fix RawHtml element count bug

Fixes #13