How to link count of flanges to dimension?

I have a problem.

Please see attachment assembly.
When You change diameter of wheel sheet dimension will be changedtoo, but...
Count of flanges is still the same. Is possible to make count offlanges depend of dimension of other parameter?

SolidworksSheet Metal