def count_encrypted_layers(encrypted_layers: dict):
    """
    Count number of encrypted layers homomorphic encryption (HE) layers/variables.

    """
    n_total = len(encrypted_layers)
    n_encrypted = 0
    for e in encrypted_layers.keys():
        if encrypted_layers[e]:
            n_encrypted += 1
    return n_encrypted, n_total