This sheet lays out a 6 ft (72") 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: 13 balusters
72" ÷ (1-1/2" + gap) fits 13 balusters with 14 equal gaps of 3-3/4" (3.750"), 5-1/4" on centre.
From the post face the leading edges fall at 3-3/4", 9", 14-1/4", 19-1/2" and on in 5-1/4" steps. Buy 15 to allow 10% for splits and miscuts.
3/4" metal: 16 balusters
Thinner balusters need more of them: 16 at 3-1/2"+ gaps, 4-1/4" on centre. The first four marks: 3-1/2", 7-13/16", 12-1/16", 16-3/8".
1" metal or composite takes 15 at 3-9/16"; 3-1/2" flat pickets take 10 at 3-3/8".
This span needs a middle post
With 4x4 posts the centres would be 6' 3-1/2" apart, past the 6'-0" DCA 6 limit for prescriptive guard posts. Add 0 intermediate post (1 bays of about 72" 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.