def get_number_alien_x(ai_settings, alien_width):
    """calculate how many aliens  a line can hold"""
    available_space_x = ai_settings.screen_width-2*alien_width
    number_alien_x = int(available_space_x/(2*alien_width))
    return number_alien_x