I am looking to create a function that will generate numbers sequentially with each execution. This is important for me as I need to establish an order for my items in mongoDB using JavaScript. Can anyone provide guidance on how to write a JS function that will produce sequential numbers each time it is run? For example, the function should output 1 when first executed, then 2 on the next run, and so forth.