@app.route('/nodes', defaults={'env': app.config['DEFAULT_ENVIRONMENT']})
@app.route('/<env>/nodes')
def nodes(env):
    envs = environments()
    check_env(env, envs)

    if env == '*':
        query = None
    else:
        query = '["and", {0}]'.format(
            ", ".join('["=", "{0}", "{1}"]'.format(field, env)
                for field in ['catalog_environment', 'facts_environment'])),

    status_arg = request.args.get('status', '')
    nodelist = puppetdb.nodes(
        query=query,
        unreported=app.config['UNRESPONSIVE_HOURS'],
        with_status=True)
    nodes = []
    for node in yield_or_stop(nodelist):
        if status_arg:
            if node.status == status_arg:
                nodes.append(node)
        else:
            nodes.append(node)
    return Response(stream_with_context(
        stream_template('nodes.html',
            nodes=nodes,
            envs=envs,
            current_env=env)))
Return the number of times a value appears in the list of the values
dataset/ETHPy150Open voxpupuli/puppetboard/puppetboard/app.py/nodes--crossover with--dataset/ETHPy150Open armet/python-armet/armet/http/response.py/Response.count