updates number of components in spec