Add a method to get the tree size of the local database.

This is taken to be the number of contiguous entries starting from the first
entry.
Slimfast DB
Update Signer to use ConsistentStore too.
fixes
Add a method to get the tree size of the local database.