def get_num_comments(root):
    """
    Gets Lines of comments in code
    :param root: Root node of an XML Element tree
    :type root: XML ElementTree root node
    :return: Number of lines of comments
    :rtype: Int
    """
    linecount = 0
    for c in root.findall('.//COMMENT'):
        # print(c.text)
        # print(c.get('line1'))
        # print(c.get('line2'))
        linecount += 1
    return (linecount)