To make comparisons of equality using nouns we use the formula:
tanto/tanta/tantos/tantas + noun + como
Tanto agrees with the noun in number and gender:
Ya no tengo tanta energía como antes. I don't have as much energy as before.
Tienes tantos libros como una biblioteca. You have as many books as a library (does).
Nosotros necesitamos tanta atención como ellos. We need as much attention as they do.
Mi hermana no tiene tantas ganas de jugar como cuando tenía 10 años. My sister isn't as willing to play as she was when she was 10 years old.
Yo no tengo tanto orgullo como tenía cuando era niño. I don't have as much pride as I used to have when I was a kid.