Discard your hand. Then draw X cards, where X is the number of card types among cards in your graveyard.
The value of X is determined only as Peer Past the Veil resolves, after you discard your hand. Since Peer Past the Veil is still on the stack while it's resolving, it won't count itself.