Start with the deck plan and the numbers you need
Before you count anything, you need three numbers: the deck size (length by width), the joist spacing you are building to (usually 16 inches on center, or 12 for some composite decking), and your local frost depth, which sets how deep the footings go. With those, every material quantity falls out of the plan.
If you do not have a drawing, sketch one. Even a rough top-down with dimensions and post locations turns a vague idea into something you can estimate and price.