Fix post numbers in messageList

Can't rely on the length of the message-container HTMLCollection
as it's likely to change while more elements are parsed (leading to
incorrect numbering). New method is also faster.