def incoming_3pc_msgs_count(nodes_count: int=4) -> int:
    pre_prepare = 1
    prepares = (nodes_count - 2)
    commits = (nodes_count - 1)
    return ((pre_prepare + prepares) + commits)
def incoming_3pc_msgs_count(nodes_count: int=4) -> int:
    pre_prepare = 1
    prepares = (nodes_count - 2)
    commits = (nodes_count - 1)
    return ((pre_prepare + prepares) + commits)