So you are saying that LibBitcoin is not really indexing the block headers and not counting the height of the highest ‘block headers chain’ found.
What about instead then that from my program I construct that counter function myself, by starting from the genesis block and then asking the LB Blockchain persistence,
which child block headers it has - and then ask those block headers which children they have - etc - and this way i traverse the whole tree, would that make sense?