What does "counterfoil" mean?

Counterfoil: The part of a writing (as the stub of a bank check) in which are noted the main particulars contained in the corresponding part, which has been issued.

Sources