updates spec with number of components