def get_case_number(caselist):
    """Get line number from file caselist."""
    num = 0
    with open(caselist, 'r') as casefile:
        for line in casefile:
            if line.strip().startswith('#') is False:
                num = num + 1
    return num