def get_number_stars_x(settings, star_width):
    """Determine the number of stars that fit in a row."""
    avaiable_space_x = settings.screen_width - star_width
    number_stars_x = int(avaiable_space_x / (2 * star_width))
    return number_stars_x