pub fn chain_get_segment_count(world: &World, chain_id: ChainId) -> i32
Get the number of segments on this chain. (b2Chain_GetSegmentCount)