Check for broken links, then validate checksums.
Improve assert error message.
Use snap db in count.