def print_result_header(xp_result):
    """Print header for XPath result(s)."""
    if isinstance(xp_result, list):
        list_result = xp_result
    else:
        list_result = [xp_result]
    xp_r_len = len(list_result)
    if xp_r_len == 0:
        print('no results.')
    elif xp_r_len == 1:
        if isinstance(list_result[0], tuple):
            print('1 XML namespace result')
        else:
            print('1 result.')
    elif isinstance(list_result[0], tuple):
        print('%d XML namespace results.' % xp_r_len)
    else:
        print('%d results.' % xp_r_len)
