The Pseudo-Dimension of Contracts