Retrieves the current number of blocks in the main chain — the longest chain known to this node.

Outputs:
count — unsigned integer; total number of blocks in the blockchain, including genesis block at height zero.

Language