def getNumber(card):
    """
    Get the value of a card.
    
    Parameters 
    ----------
    card : str
        The card we are looking at
        
    Returns 
    -------
    val : int
        The value of the card
    """
    num = card[:-1]
    if num == 'A':
        return 11 
    elif num == 'J' or num == 'Q' or num == 'K':
        return 10
    else:
        return int(num)