Templater note count

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do


I am using templater and I have one section that I write the number of the note that I add, 1, 2 3 and so on.

But I do it manually for now and takes some extra time, any ideas that I can have templater to retrieve this info automatically from the previous note?

Things I have tried