def get_number_rows(ai_settings, ship_height, alien_height):
    """Determine the number of rows of aliens that fit on the screen."""
    available_space_y = (ai_settings.screen_height - 3 * alien_height -
        ship_height)
    number_rows = int(available_space_y / (2 * alien_height))
    return number_rows
