edt index
add counter