Fixed node_count to consider func_name