def chooseCountThreshold(dataD):

    rowLabels = dataD['rowLabels']
    dMat = dataD['dataMatrix']

    numBits = 0
    for ii in range(len(rowLabels)):
        if (numBits > 0):
            continue
        if (rowLabels[ii].find("B:GNAB:TP53:") >= 0):
            for jj in range(len(dMat[ii])):
                if (dMat[ii][jj] == 0):
                    numBits += 1
                elif (dMat[ii][jj] == 1):
                    numBits += 1

    print " number of bits found for TP53 mutation feature: ", numBits
    countThreshold = int(numBits / 11) - 1
    return (countThreshold)