def get_num_steps(config_filename):
    """Get num_steps as int from config file."""
    with open(config_filename, 'r') as f:
        s = f.read()
    num_steps = s.split('query_parameters.num_steps = ')[-1].split('\n')[0]
    num_steps = int(num_steps)
    return num_steps