I noticed like the other thread that we're quite off-track in here.
A simple way of getting the correct count in correlation to your post number is to subtract 1,000,000 by your new post's reply number (which is the last post's reply number add 1).
996,740