@staticmethod
def compute_block_metric(block):
    """Return comparable metric on block information."""
    instruction_ctr = 0
    for line in block:
        if line.instruction is None:
            continue
        instruction_ctr += 1
    return instruction_ctr
