Init.js count notes function

Is there a way to request the number of notes in a specific notebook (in my case the build in “All Notes” notebook) via only the init.js file? Already tried some functions on the internet but nothing worked. The function should only request the int and store it in a variable. Thanks for helping me out :slight_smile:

Hi Jamie,

Thanks for the question.
I’ve added a page on how to get the stats of the database here!

Hope that helps.

Hi Takuya,

thanks for the quick reply. The doc will help me a lot. Could you please give me one example how to request the stats of all notes, for me to work with?

I don’t understand your question because the doc page answers that.