I had just enough pieces to do it/ I had the exact number of pieces to do it. -- Strictly speaking, "amount" is a bit sloppy when talking of countable things, though it is widely used and tolerated in conversational English. I can't see the things that are/ what's going on out there if you stand in front of me.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.