def cred_def_id2seq_no(cd_id: str) ->int:
    """
    Given a credential definition identifier, return its schema sequence number.

    :param cd_id: credential definition identifier
    :return: sequence number
    """
    return int(cd_id.split(':')[-2])
