I've just had a thought that rogue planets might function as nucleation seeds that grow into stars if they were to pass through nebulae, molecular clouds, supernova remnants and so on and accrete material to themselves via their gravitational attraction. However, this is just a random thought - it doesn't sound implausible, but I don't know how significant it would be as one possible cause of stellar formation. It's the sort of scenario whose likelihood can probably only be estimated by computer modelling.
One 2011 study indicated an upper limit of 0.25 Jupiter-mass free-floating or wide-orbit planets for every main-sequence star in the Milky Way - so perhaps as many as 100 billion such planets. One would expect a similar or larger number of smaller mass rogue planets. The estimated number of non-rogue planets in stellar systems in the Milky Way is usually put at between 100 billion and 200 billion.