returns (511, 35082) for ANC__WhereToHongKong.xml

def count_elements(fname, element):
    """
    returns (511, 35082) for ANC__WhereToHongKong.xml
    """
    num = 0
    tot = 0
    for event, elem in iterparse(fname):
        tot += 1
        if elem.text != '':
            #print(' tag  = ', elem.tag)
            #print(' event  = ', event   # always end
            #print(' text = ',  elem.text)
            pass
        if element in elem.tag:
            #print(elem.xpath( 'description/text( )' ))
            #print(elem.text)
            num += 1
            elem.clear()
    return num, tot