def JNumber(state_list):
    """Calculate the angular momentum from the number of sub-states in the list.
    
    Parameters:
        state_list (list): List of sub-states of a single angular momentum state.
    
    Returns
        int: The total angular momentum of the state.
    """
    return int((len(state_list)-1)/2)