Question Author
Elliemay1's answer could be it. But
What if the envelope is different from the usual one? What I mean is the envelope is not sold in any local store.
It is a special envelope and it is sealed with special tape, e.g. washi tape.
Calibax's answer is plausible too. But
What if John received the envelope in sealed condition directly.
I would like to add some lines to the questions again.
The reason why John had known the amount is because David counted the money in front of John. John only looked at how David counted the money using calculator, but John didnt actually count in his head. John only saw the number appeared in the calculator, which is the total. After David had counted, David put the money inside the special envelope and sealed it with special tape in front of John.
The envelope is only one and it is the only envelope in John's folder.