def get_num_aliens(ai_settings, alien_width):
    """determine number of aliens that fit in a row"""
    available_space_x = ai_settings.screen_width - 2 * alien_width
    num_aliens_x = int(available_space_x / (2 * alien_width))
    return num_aliens_x
