def METHOD_NAME(xdmfFile):
    out = subprocess.check_output(["grep connect " + xdmfFile + " | head -n1"], shell=True)
    e = xml.etree.ElementTree.fromstring(out)
    dimstring = e.attrib["Dimensions"].split()
    return int(dimstring[0])