Automatically get total number of notes