Removed duplicate NumberOfStars function