If you're talking about the observable universe, the number of stars and galaxies is finite. If you're talking about the entire universe, then the number of stars and galaxies probably is infinite. read more
The observable universe has a finite size, so the number of stars and galaxies inside is finite. The entire universe is probably infinite in size, so it would be possible to have infinite stars and galaxies. read more