How many-Quanto custa. Ex:

How many books are there?-Tem quantos livros?
How many CDs?-Quantos CDs?

How much-Quanto custa. Ex:

How much is this CD?-Quanto custa esse CD?
How much are there CDs?- Quanto custa esses CDs?
How much is this books?-Quanto custa esse livro?