Why not use html's <ol> tag to do for you the numbering?