Just let krpano do the work for you

You could either create an action counting all hotspots and create a var with its name for each of them, or you could create your own little database. For the text input you could use ahoebens extended textfield.
BR
Nupsi