def get_number_rows(ai_settings, ship_height, alien_height):
    """calculate how many row can the screen hold"""
    available_space_y = ai_settings.screen_height-3*alien_height-ship_height
    number_rows = int(available_space_y/(2*alien_height))
    return number_rows