def checkPrefix(labelList, aPrefix):

    nLabel = len(labelList)
    nHas = 0
    for aLabel in labelList:
        bLabel = aLabel.upper()
        if (bLabel == "NA"):
            nLabel -= 1
            continue
        if (bLabel.startswith(aPrefix)):
            nHas += 1

    if ((nHas + 2) >= nLabel): return (1)

    return (0)