def computeSkelPoints(cluster, label):
    """
    computes the number of nodes that will form the skeleton

    :param cluster: input data
    :param label: id of the class, 0 for stem, else leaf instances
    :return: number of skeleton nodes in the given set
    """
    if label == 0:
        skel_points = len(cluster)//600
        skel_points = 5 if skel_points < 5 else skel_points
        skel_points = 50 if skel_points > 50 else skel_points
    else:
        skel_points = len(str(len(cluster))) - 1
        skel_points = 2 if skel_points < 2 else skel_points
        skel_points = 6 if skel_points > 6 else skel_points
    return skel_points