Handle repeated headings.
Merge pull request #13 from qubyte/feature/countHeaders

Handle repeated headings.