All you do is mentally put the cards that are in the discard tray when you start to play at the back of the shoe. Don't assume the count of unseen cards.

Alternatively, every time you look at the discard tray, subtract 20 cards.