def get_fx_reps(pdb):
    """
    Determine the number of FoldX replicates run from PDB column output
    """
    count = 0
    for index in pdb:
        index = index.split('_')
        if index[0] == 'WT' or not index[-2] == '1':
            # WT catches end of first PDB in Raw files
            # x[-2] catches end in Dif/Average files
            break
        count += 1
    return count