def get_filelen(fname: str) -> int:
    """Get length of csv file.

    Args:
        fname: file name.

    Returns:
        int.

    """
    cnt_lines = -1
    with open(fname, 'rb') as fin:
        for line in fin:
            if len(line.strip()) > 0:
                cnt_lines += 1
    return cnt_lines