New-style exception.
Reading the total number of items now uses an pre-compiled regex.
Renamed method, threw away unused code-branch.