def Get_Current_Table(current_table, file):
    """Get the current condition of the table from the file.

    In the file, "*" stands for empty piece, "B" standards for black piece, and
    "W" stands for white piece.
    
    Args:
        current_table (2D array): 8*8 values indicating the current condition
                                  of the board. Will be updated in place.
        file (array): A list of strings representing the current condition of
                      the table.
    
    Returns:
        count (int): Number of occupied pieces.
        
    """

    count = 0
    for i in range(8):
        for j in range(8):
            if file[i][j] == "B":
                current_table[j][i] = 1
                count += 1
            elif file[i][j] == "W":
                current_table[j][i] = -1
                count += 1
            else:
                current_table[j][i] = 0
    
    return count