def get_max_array_dimension(signature):
    """Gets the number of array dimensions in this signature."""
    return_value = 0
    while signature.find((return_value + 1) * 'a') != -1:
        return_value += 1

    return return_value