You need two per flag pole, of course. (Or four if you also want to be able to fly the flag half-mast.) Use two small screws to fix it to the flag pole. Attach flag with zipties or thin rope.
Screw holes are 3 mm.
The (mostly) parametric OpenSCAD source is included if you want to make adjustments.
The author marked this model as their own original creation.