Instantiating a 3D Part in an assembly with EKL action

I'm trying to create a template part for a ball bearing assembly which is fully parametrized and pretty detailed. Thus, I'd like to be able to vary the number of balls inside. I know how to make an action that does this for bodies inside of a part, but how would you do it for parts inside an assembly?
Thanks in advance!