def get_number_rows(setting, ship_height, alien_height):
    """Calculate the row number of aliens
    """
    avaliable_space_y = setting.WindowHeight - (3 * alien_height) - ship_height
    number_rows = int(avaliable_space_y / (2 * alien_height))
    return number_rows