def get_number_rows(ai_set, ship_width, star_width):
    """Determine the number of rows of aliens that fit on the screen."""
    available_space_x = (ai_set.screen_width - (2 * star_width) -
                         ship_width)
    number_rows = int(available_space_x / (3 * star_width))
    return number_rows