restore getblockcount