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

Maybe just add a caveat comment that although now restarts are handled better any certs added but not sequenced at restart time will be lost?