Yes captain! You have already saluted your crew! Congratulations! However, your mission for this course is not done :) Now suppose that, you want to hold your current number of pirate in your crew with this program :)
Firstly, we will create an account struct for this number like this. Please write it to below your program mod and above your Initialize struct.
#[account]
#[derive(Default)]
pub struct NumberAccount {
number_of_crew: u64
}
This code defines a struct NumberAccount with one field, number_of_crew, which is an unsigned 64-bit integer. The #[account] attribute indicates that this struct is an account, which means that it will be stored on-chain as a Solana account. The #[derive(Default)] attribute provides a default implementation for the struct, which initializes number_of_crew to 0 when a new instance of NumberAccount is created. When you are ready go to next chapter :)