def extract_jpnij(txtlst):
    """
    function to extract total number of domain
    for a specific domain layout txt output

    Input: list of string containing 1 layout description 
           extracted from the processor layout file
    
    Output: tuple (jpni, jpnj, jpni*jpnj)
    """
    jpnij = int(txtlst[1].split()[-1])
    ctmp = txtlst[3].split()
    jpni = int(ctmp[1])
    jpnj = int(ctmp[3])
    return (jpni, jpnj, jpnij)