Cohen-Macaulay type and Resolution