Assembly question...

I want to make a handrail with spindles. Is there any way to set it so that as the length of rail increases, the number of spindles increases proportionally?

SolidworksAssemblies