1 Create a ASP.NET server page that spits out XML with all the menu notes.
eg
<data>
<note id=1>My note 1</note>
<note id=2>etc...</note>
</data>
2 Modify the .NET page code to get the note count and note text from SQL and incorporate it in the XML stream (keeping the connection string on the server).
3 Write some Javascript onLoad= code if necessary to setup the menu without the notes to begin with (as the rest of the data will come in asynchronously slightly or a lot later or not at all depending on network ie certainly not immediately at onLoad= time).
4 Write some async Javascript code that pulls down the XML and uses the DOM model of the XML to count the nodes, pull out the note text, push it into the menu object in the right places and update the visible counter-parts to the menu at that point if apt.
5 Write some fallback code for if AJAX doesn't work on the particular user's browser platform eg server-generated Javascript as Andrea shows above, or just non-display of menu notes if apt.
I get the feeling from how you say this that the requirements will change soon so that you'll want more schema fields and to give more prominence in the UI to the dynamic aspect of this process than you are hinting. But this should get you off to a good start in getting something running and also started going off in the right direction technically.