You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: resources.rs
    path of file: ./repos/bevy/crates/bevy_ecs/examples
    
    the code of the file until where you have to start completion: //! In this example we add a counter resource and increase it's value in one system,
//! while a different system prints the current count to the console.

use bevy_ecs::prelude::*;
use rand::Rng;
use std::ops::Deref;

fn main() {
    // Create a world
    let mut world = World::new();

    // Add the counter resource
    world.insert_resource(Counter { value: 0 });

    
fn main() {
    // Create a world
    let mut world = World::new();

    // Add the counter resource
    world.insert_resource(Counter { value: 0 });

    // Create a schedule
    let mut schedule = Schedule::default();

    // Add systems to increase the counter and to print out the current value
    schedule.add_systems((increase_counter, print_counter).chain());

    for iteration in 1..=10 {
        println!("Simulating frame {iteration}/10");
        schedule.run(&mut world);
    }
}