This sheet lays out a 7 ft (84") deck railing between post faces. It compares 1-1/2" wood with 3/4" metal, gives every mark from one hook of the tape, and checks the 4" sphere rule and post spacing.
1-1/2" wood: 16 balusters
84" ÷ (1-1/2" + gap) fits 16 balusters with 17 equal gaps of 3-1/2"+ (3.529"), 5" on centre.
From the post face the leading edges fall at 3-1/2", 8-9/16", 13-9/16", 18-5/8" and on in 5" steps. Buy 18 to allow 10% for splits and miscuts.
3/4" metal: 18 balusters
Thinner balusters need more of them: 18 at 3-11/16"+ gaps, 4-7/16" on centre. The first four marks: 3-11/16", 8-3/16", 12-5/8", 17-1/16".
1" metal or composite takes 17 at 3-3/4"; 3-1/2" flat pickets take 12 at 3-1/4".
This span needs a middle post
With 4x4 posts the centres would be 7' 3-1/2" apart, past the 6'-0" DCA 6 limit for prescriptive guard posts. Add 1 intermediate post (2 bays of about 40-1/4" clear), or use a railing kit rated for this section length.
The guard top sits at least 36" above the deck and the bottom rail less than 4" above it.