def get_header_length(sitefile, col0='SITE_BADGE'):
    """Detect the number of rows to skip when reading
    a tabular file with '#' head comments.
    """
    with open(sitefile) as src:
        for i, line in enumerate(src):
            if '#' not in str(line) and col0 in str(line):
                return i