add a counter to XTemplate unique div id's