def get_number_aliens_x(ai_settings, alien_width):
    """
    calculate the number of aliens a line can contains
    """
    available_x = ai_settings.screen_width - 2*alien_width
    number_aliens_x = int(available_x / (2 * alien_width))
    return number_aliens_x